<%
String mensagem = (String)request.getAttribute("mensagem");
%>
<html>
<head>
<title>SCPA - Sistema de Controle de Processos e Auditoria</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script type="text/javascript" src="js/funcoes.js"></script>
<link href="css/estilo2.css" rel="stylesheet" type="text/css" />
<style type="text/css">
<!--
body {
	margin: 0px;
}
-->
</style>
<script language="javascript">
function validarLogin()
{
	if(document.forms[0].login.value == '')
	{
		alert('O login deve ser informado.');
		document.forms[0].login.focus();
		return false;
	}
	if(document.forms[0].senha.value == '')
	{
		alert('A senha deve ser informada.');
		document.forms[0].senha.focus();
		return false;
	}
}
</script>
</head>

<body onload="document.forms[0].login.focus()">
<form name="formLogin" method="post" onSubmit="return validarLogin();" action="ServletLogin">
	<table width="100%" height="100%"  border="0" cellpadding="0" cellspacing="0" bgcolor="#7192B1">
	  <tr>
	    <td height="63">
		<table width="100%" height="63"  border="0" cellpadding="0" cellspacing="0">
	      <tr>
	        <td width="291" rowspan="2" background="imagens/logo.jpg">&nbsp;</td>
	        <td height="63" background="imagens/fundo.jpg">&nbsp;</td>
	      </tr>
	    </table>
		</td>
	  </tr>
	  <tr>
	    <td align="center">
			<table cellspacing="0" cellpadding="2">
				<tr class="texto09">
					<td class="error" colspan="2" align="center">
					<%
				  		if(mensagem != null)
				  			out.print(mensagem + "<br/>");
				  	%>
					</td>
				</tr>
				<tr class="texto09">
					<td width="45">Login:</td>
					<td><input type="text" name="login" size="25" style="border: solid 1px #999999" /></td>
				</tr>
				<tr class="texto09">
					<td>Senha:</td>
					<td><input type="password" name="senha" size="25" style="border: solid 1px #999999" /></td>
				</tr>
				<tr>
					<td colspan="2" align="right">
						<input name="btnEntrar" type="submit" class="texto03" value="Entrar">
					</td>
				</tr>
			</table>
			<p>&nbsp;</p>
	    	<p>&nbsp;</p>
	    	<p>&nbsp;</p>
	    	<p>&nbsp;</p>
	   </td>
	  </tr>
	</table>
</form>

</body>
</html>

